<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%-- 
    JSP Name : da_600_01K.jsp
    Description : 뉴스레터 리스트
    author Ki Min
    since 2012. 8. 14.
    version 1.0
    Modification Information
       since          author              description
    ===========    =============    ===========================
    2012. 8. 6.     Ki Min     최초 생성
--%>
<%@ include file="/WEB-INF/jsp/co/us/include/declare.jspf" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko" lang="ko">
<head>
<title>현대자동차 CSR &#124; 뉴스레터</title>
<meta name="description" content="현대자동차 CSR에서 월별 발송되는 뉴스레터를 소개합니다." />
<meta name="keywords" content="현대자동차 CSR, 뉴스레터" />
<%@ include file="/WEB-INF/jsp/co/us/include/header.jspf" %>
<script type="text/javaScript" language="javascript">

$(document).ready(function() {
    if($("#chNews").val() != "" && $("#chNews").val() != null){
        var srcFath = "/upfile/html/" + $("#chNews").val();
        $("#newsIframe").attr('src', srcFath);
    }
    
    alert("뉴스레터는 10월 중순부터 발송될 예정입니다.\n준비중이오니 조금만 기다려주세요.");
});


function chNewsFrm(filNm){
    var srcFath = "/upfile/html/" + filNm
    $("#newsIframe").attr('src', srcFath);
}
</script>
</head>
<body>
<div id="wrap">
    <!-- top -->
    <%@ include file="/WEB-INF/jsp/co/us/include/top.jsp" %>
    <!-- top -->

    <!-- container -->
    <div id="container">
        <div id="contentsWrap">
            <div id="contentsArea">
                <div class="headingArea">
                    <div class="location">
                        <a href="/ma_100_01.do">홈</a>
                        <a href="/da_100_01.do">CSR 자료실</a>
                        <span>뉴스레터</span>
                    </div>
                    <h2>뉴스레터</h2>
                </div>
                <div id="contetns">
                    <div class="searchArea">
                        <p class="pageResult">총 <span class="totalNum">${paginationInfo.totalRecordCount}</span>건 </p>
                        <div id="search">
                            <fieldset>
                                <div class="selectArea">
                                    <select id="chNews" name="chNews" onchange="chNewsFrm(this.value)">
                                        <c:forEach var="result" items="${resultList }" varStatus="status">
                                            <option value="${result.filNm }">${result.rgstY }년 ${result.rgstM }월 </option>    
                                        </c:forEach>
                                    </select>
                                </div>
                            </fieldset>
                        </div>
                    </div>
                    <div class="letterArea">
                        <iframe id="newsIframe" width="920" height="428"></iframe>
                    </div>
                    <div class="btnArea down">
                        <span class="reverse"><a href="/da_600_02.do"><img src="/img/usr/btn/btn_newsletter.gif" alt="뉴스레터 신청하기" /></a></span>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- /container -->

    <!-- footer -->
    <%@ include file="/WEB-INF/jsp/co/us/include/bottom.jsp" %>
    <!-- /footer -->
</div>
</body>
</html>